package com.yb.sys.user.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor

//java实体类映射
@Document("students")
@Builder
public class Students implements Serializable {
    @Id
    private String _id;

    private String id;
    private String name;
    private Integer age;
}
